package com.ls.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.view.freemarker.FreeMarkerConfigurer;

/**
 * <p></p>
 * Created by zhezhiyong@163.com on 2017/2/23.
 */
@Configuration
public class AppConfig {

    @Bean
    public FreeMarkerConfigurer freeMarkerConfigurer() {
        ShiroTagFreeMarkerConfigurer configurer = new ShiroTagFreeMarkerConfigurer();
        configurer.setTemplateLoaderPath("classpath:/templates/");
        configurer.setDefaultEncoding("UTF-8");
        return configurer;
    }

}
